package com.bit.demo.mybatisdemo.mapper;

import com.bit.demo.mybatisdemo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapperXML {
    List<UserInfo> selectAll();
    List<UserInfo> selectAll2();

    Integer insert(UserInfo userInfo);

    Integer insert2(@Param("userInfo") UserInfo userInfo);
    Integer insert3(UserInfo userInfo);
    Integer insert4(UserInfo userInfo);

    Integer updateById(Integer id,String username,String password);

    Integer deleteById(Integer id);

    List<UserInfo> selectByConditions(UserInfo userInfo);

    Integer updateById2(UserInfo userInfo);

    Integer batchDelete(@Param("ids") List<Integer> ids);
}
